<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 12-10-4
 * Time: 下午1:27
 * To change this template use File | Settings | File Templates.
 */
//class Person
//{
//    protected $myname = "ss";
//
//}
//
//class Student extends Person
//{
//    function __construct($a = 1)
//    {
//
//    }
//
//    public function getMyName()
//    {
//        return $this->myname;
//    }
//}
//
//$x = new Student();
//$x->xxxx = 123;
//echo $x->xxxx;
//
//$str = mb_convert_encoding('中国', "GBK", "auto");
//
//echo strlen($str);
//echo $str;
//
////echo phpinfo();
//
//require_once(dirname(__FILE__) . '/../library/FirePHPCore/fb.php');
//
//FB::log('Log message');
//FB::info('Info message');
//FB::warn('Warn message');
//FB::error('Error message');
//
//$a1 = 'mm';
//
//$s1 =  "a" . "b$" . "{a1}";
//$s11 = $s1;
//
//echo $s11;


class P{
    public static function getA(){
        self::getX();
    }

    public static function getX(){
        echo 'xxx';
    }
}

class C extends P{
    public static function getX(){
        echo 'xxxcccc';
    }
}
//
//
//C::getA();

$x = new stdClass(); // 'C';

//echo  ($x instanceof stdClass);
//echo '-----';
//echo  is_subclass_of($x, 'stdClass');
$a = '';
//echo empty($a);
echo intval($a);

//$a = '/:(\w+)/';
//$content = "UPDATE cfg_search_groups SET is_default = 'Y', update_by = :update_by, update_time = :update_time WHERE id = :id";
//$rst = preg_match_all($a, $content, $matches);
//echo $matches;
//echo $rst;

//$a = array('s' => 1);
//class AA{
//
//}
//$b = new AA();
//echo is_object($a);
//echo is_object($b);
//echo is_array($a);